#zk {
  overflow: hidden;
  transition: all 0.3s;
  height: 388px;
}

html {
  scroll-behavior: smooth;
}

.iconfont {
  font-size: 20px;
}

.red {
  color: red;
}

.category-card,
.rounded-lg {
  cursor: pointer;
}

#kh img {
  border: 1px solid #ccc;
}

#mrjx p {
  height: 52px;
  overflow: hidden;
  text-overflow: ellipsis
}

#scfl img {
  height: 150px;
}

#xxx1 button:first-child {
  width: 130px;
}

.hflp {
  position: relative;
}

/* 提示框 */
.alert {
  position: absolute;
  width: 200px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: none;
  padding: 18px 24px;
  background: linear-gradient(135deg, #e6e6fa, #d8bbd8);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(150, 105, 200, 0.3);
}

.show {
  display: block !important;
}

.alert-success {
  background-color: skyblue;
}

.fhlp .iconfont {
  position: absolute;
  top: 53%;
  left: 82%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  display: none;
  color: greenyellow;
}

.cuo {
  color: red !important;
}

/* 搜索框 */
.search-container {
  position: relative;
  width: 400px;
  /* 控制搜索框和下拉框的整体宽度 */
  /* margin: 50px auto; */
  /* height: 20px; */
}


.search-input {
  width: 90%;
  height: 45px;
  padding: 12px 20px;
  border: 2px solid #9b59b6;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  background-color: #f8f6ff;
}

.search-input:focus {
  box-shadow: 0 0 8px rgba(155, 89, 182, 0.5);
}

.search-results {
  /* display: none; */
  position: absolute;
  width: 100%;
  /* 保持与搜索框同宽 */
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  z-index: 1000;
  /* 移除固定高度，改为自动高度 */
  max-height: 80vh;
  /* 防止过高超出视口 */
  overflow-y: auto;
  /* 内容过多时显示滚动条 */
}

.result-item {
  padding: 12px 20px;
  color: #2d3436;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
  /* 防止文字换行 */
  overflow: hidden;
  text-overflow: ellipsis;
  /* 文字过长显示省略号 */
}


.result-item:hover {
  background-color: #f5f3ff;
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9b59b6;
}

.result-item.error {
  color: #e74c3c;
  background: #ffe6e6;
}

/* 加载状态样式 */
.result-item:not(.error) {
  color: #666;
  font-style: italic;
}